package com.itheima.edu.info.test;

public class test05 {

    public static void main(String[] args) {
        useStringHandler((String msg)->{
            System.out.println("lambda表达式"+msg);
        });
    }


    public static void useStringHandler(StringHandler stringHandler){
        stringHandler.printMessage("itheima");
    }


}


interface StringHandler {
    void printMessage(String msg);
}